@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('/res/font/AlibabaPuHuiTi.woff2') format('woff2');
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-size: 16px;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: #ffffff;
}

.top-section {
    background-color: #000;
    margin-top: 0%;
}

.top-background {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family:  '楷体','Microsoft YaHei', STKaiti, sans-serif;
    margin-top: 10px;
}

.top-background .top-sign-0,
.top-background .top-sign-1 {
    text-align: center; 
}

.top-background .top-sign-0 {
    color: white;
    font-size: 50px;
    font-weight: 900;
    display: flex;
    justify-content: center; 
    align-items: center;
    flex: 1;
    margin-top: 2%;
    /* 新增动画效果 */
    opacity: 0;
    transform: translateY(30px);
    animation: signAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.top-background .top-sign-1 {
    color: #ccc;
    font-size: 18px;
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-left: 50%;
    margin-bottom: 2%;
    /* 新增动画效果 */
    opacity: 0;
    transform: translateX(30px);
    animation: signAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.main-content {
    background-color: #fff;
    margin: 2% 10%; 
    padding: 30px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
}
@media (prefers-color-scheme: dark) {
    .navigation {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .nav-links .nav-button {
        background-color: rgba(255, 255, 255, 0.15);
    }
    .nav-links .nav-button:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }
}


.content-container {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap; 
    flex-grow: 1;
}

.content-container .sidebar {
    flex: 1 1 200px; 
    margin: 10px;
}

.content-container .sidebar > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    transition: all 0.3s ease-in-out; 
    background-color: #fff;
    border-radius: 10px; 
    padding: 20px; 
}

 .sidebar-introduce,
.sidebar-notice {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 0px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-notice h3,
.sidebar-introduce h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #212529;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.sidebar-notice h3::before {
    content: '\f0a1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #000000;
}

.sidebar-introduce h3::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #000000;
}

.sidebar-notice p,
.sidebar-introduce p {
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.sidebar-notice a,
.sidebar-introduce a {
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-notice a:hover,
.sidebar-introduce a:hover {
    color: #555555;
    text-decoration: none;
    padding-left: 3px;
}

@media (max-width: 768px) {
    .sidebar-notice,
    .sidebar-introduce {
        padding: 15px;
        margin-top: 20px;
    }
    
    .notice-list li,
    .introduce-list li {
        padding: 8px 10px;
    }
}

.notice-list,
.introduce-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-list li,
.introduce-list li {
    padding: 18px 24px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    background-color: #ffffff;
}

.notice-list li::before,
.introduce-list li::before {
    content: '•';
    color: #000;
    display: inline-block;
    width: 1em;
    margin-right: 5px;
}
.notice-list li,
.introduce-list li {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}





@media (max-width: 768px) {
    .sidebar-notice,
    .sidebar-introduce {
        padding: 15px;
        margin-top: 20px;
    }
    
    .notice-list li,
    .introduce-list li {
        padding: 8px 10px;
    }
}



.content-container .sidebar .sidebar-sign p {
    color: #000000; 
    font-size: 16px;
}

.content-container .sidebar .sidebar-sign .sidebar-logo {
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.content-container .sidebar .sidebar-sign img {
    text-align: center;
    align-items: center;
    border-radius: 50%;
    margin-top: 10px;
}

.content-container .sidebar .sidebar-sign .sidebar-name {
    font-weight: bold;
    margin-top: 10px;
    font-size: 18px  ;
    
}
.content-container .sidebar .sidebar-sign .sidebar-sign {
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px  ;
    font-family: '楷体','Microsoft YaHei',  STKaiti, sans-serif;
}

.content-container .sidebar .sidebar-sign .sidebar-social  {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 10px;
}

.content-container .sidebar .sidebar-sign .sidebar-social a {
    width: 30%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    margin: 5px 0;
    transition: transform 0.2s ease;
}

.content-container .sidebar .sidebar-sign .sidebar-social a:hover {
    transform: scale(1.1);
}

.content-container .sidebar .sidebar-sign .sidebar-social a img {
    width: 30px;
    height: 30px;
    border-radius: 0px;
}

.content-container .blog-list {
    flex: 3 1 400px; 
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    object-fit: cover;
}

.content-container .blog-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 20px;
    flex-grow: 1;
}

.content-container .blog-list li {
    padding: 30px;
    border-radius: 10px; 
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.3s ease-in-out; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    background-color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
}

.content-container .blog-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #000;
}

.content-container .blog-list li .blog-title {
    font-size: 22px;
    width: 100%;
    color: #222;
    word-wrap: break-word;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 8px;
}

.content-container .blog-list li .blog-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.content-container .blog-list li:hover .blog-title::after {
    width: var(--title-width, 100%);
}

.content-container .blog-list li .blog-introduce {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    color: #555555;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.content-container .blog-list li .blog-introduce .calendar {
    width: 16px;
    opacity: 0.8;
    margin-right: 2px;
}

.content-container .blog-list li .blog-introduce .blog-date {
    text-align: center;
    font-weight: 500;
}

.content-container .blog-list li .blog-introduce .blog-tag {
    border-radius: 5px;
    text-align: center;
    margin-left: 5px;
    color: #555;
    background-color: #f4f4f4;
    padding: 4px 10px;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.content-container .blog-list li:hover .blog-introduce .blog-tag {
    background-color: #000;
    color: #fff;
}

.content-container .blog-list li .blog-description {
    margin-top: 15px;
    font-size: 16px;
    color: #555;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* 优化翻页栏样式 */
.content-container .blog-list .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 30px;
    padding: 6px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 4px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.content-container .blog-list .pagination .page-input-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    padding: 0 5px;
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 数字页码列表样式 */
.content-container .blog-list .pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.content-container .blog-list .pagination .page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: transparent;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    box-shadow: none;
}

.content-container .blog-list .pagination .page-number:hover {
    background-color: #f0f0f0;
    color: #000000;
    transform: none;
    box-shadow: none;
}

.content-container .blog-list .pagination .page-number.active {
    background-color: #000000;
    color: #ffffff;
    box-shadow: none;
    position: relative;
}

.content-container .blog-list .pagination .page-number.active::after {
    display: none;
}

/* Go to 容器样式 */
.content-container .blog-list .pagination .goto-container {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    background-color: transparent;
    padding: 2px 5px;
    border-radius: 4px;
    box-shadow: none;
}

.content-container .blog-list .pagination .goto-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.content-container .blog-list .pagination .page-input {
    width: 25px;
    height: 25px;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    padding: 0 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.content-container .blog-list .pagination .page-input:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
}

.content-container .blog-list .pagination .page-input.editable {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-container .blog-list .pagination .page-separator,
.content-container .blog-list .pagination .total-pages {
    font-size: 14px;
    color: #333;
    margin: 0 3px;
    font-weight: 500;
}

.content-container .blog-list .pagination .edit-button {
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 5px;
    border-radius: 4px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.content-container .blog-list .pagination .edit-button:hover {
    background-color: #000;
    color: #fff;
}
/* 移除了跳转按钮样式 */
/* 其他翻页按钮样式保持不变 */
.content-container .blog-list .pagination .pagination-button {
    background-color: transparent;
    color: #000000;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}

.content-container .blog-list .pagination .pagination-button:hover:not(.disabled) {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: none;
    box-shadow: none;
}

.content-container .blog-list .pagination .pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.content-container .blog-list .pagination .page-info {
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.content-container .blog-list .pagination .page-input-container {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.content-container .blog-list .pagination .page-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    margin-right: 0;
    padding: 0 5px;
}

.content-container .blog-list .pagination .jump-button {
    border-radius: 0 4px 4px 0;
    margin-left: 0;
    border-left: none;
}

.content-container .blog-list .pagination .page-input:focus {
    outline: none;
    border-color: #000;
    border-right: none;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .content-container .blog-list .pagination {
        padding: 10px 5px;
    }
    
    .content-container .blog-list .pagination .pagination-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .content-container .blog-list .pagination .page-info {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .content-container .blog-list .pagination .page-input {
        width: 35px;
        height: 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .content-container .blog-list .pagination {
        flex-wrap: wrap;
        justify-content: center;
        padding: 3px;
        gap: 2px;
    }
    
    .content-container .blog-list .pagination > * {
        margin: 3px;
    }
    
    .content-container .blog-list .pagination .page-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .content-container .blog-list .pagination .pagination-button {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 28px;
    }
    
    .content-container .blog-list .pagination .goto-container {
        margin-top: 5px;
        width: 100%;
        justify-content: center;
    }
}
.content-container .blog-list .pagination a {
    color: black;
    float: left;
    padding: 6px 12px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 2px;
}
.content-container .blog-list .pagination a.pagination-active {
    background-color: #000000;
    color: #ffffff;
}

.content-container .blog-list .pagination a:hover:not(.pagination-active) {
    background-color: #444;
    color: #aaa;
}


/* 增强的响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        margin: 2% 5%;
        padding: 20px;
    }
    
    .top-background .top-sign-0 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin: 2% 3%;
        padding: 15px;
    }
    
    .content-container .sidebar, .content-container .blog-list {
        flex: 1 1 100%; 
    }
    
    .navigation {
        padding: 5px 10px;
        justify-content: center;
    }
    
    .nav-links {
        gap: 8px;
        justify-content: center;
    }
    
    .nav-links .nav-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .top-background .top-sign-0 {
        font-size: 32px;
    }
    
    .top-background .top-sign-1 {
        font-size: 16px;
    }
    
    .content-container .blog-list li .blog-title {
        font-size: 20px;
    }
    
    .content-container .blog-list li .blog-description {
        font-size: 15px;
    }
    
    .bottom {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin: 2% 2%;
        padding: 10px;
    }
    
    .content-container .sidebar, .content-container .blog-list {
        flex: 1 1 100%;
        margin: 5px 0;
    }
    
    .content-container .sidebar > div {
        margin: 10px 5px;
        padding: 15px;
    }
    
    .content-container .blog-list li {
        padding: 20px 15px;
    }
    
    .nav-links {
        gap: 3px;
    }
    
    .nav-links .nav-button {
        padding: 5px 10px;
        font-size: 11px;
        border-width: 1px;
    }
    
    .top-background {
        height: 35vh;
    }
    
    .top-background .top-sign-0 {
        font-size: 28px;
    }
    
    .top-background .top-sign-1 {
        font-size: 14px;
        margin-left: 40%;
    }
    
    .content-container .blog-list .pagination {
        padding: 10px;
        gap: 5px;
    }
    
    .content-container .blog-list .pagination .page-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .content-container .blog-list .pagination .pagination-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .bottom {
        width: 95%;
        height: auto;
        padding: 10px 5px;
    }
}

/* 整合重复的媒体查询 */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }
  .sidebar, .blog-list {
    flex: 1 1 100%;
    margin: 10px 0;
  }
  .blog-list li {
    padding: 20px;
  }
}

/* 优化侧边栏动画 */
.sidebar > div {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.sidebar > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 增强博客卡片交互 */
.blog-list li {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-list li:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-list li::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-list li:hover::after {
  opacity: 1;
}

/* 新增关键帧动画 */
@keyframes signAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加鼠标悬停效果 */
.top-background:hover .top-sign-0 {
    transform: scale(1.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-background:hover .top-sign-1 {
    transform: translateX(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .top-background:hover .top-sign-0 {
        transform: none; /* 移动端取消悬停效果 */
    }
}
